<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<s:if test="attendant.attId==null">
<title>添加配送员</title>
</s:if>
<s:else>
<title>编辑配送员</title>
</s:else>
<script type="text/javascript">

</script>
<style type="text/css">

div table tr td{
font-family: '微软雅黑';
font-size: 15px;
}
</style>
</head>
<body>
<form action="atten_saveAtten" method="post" id="save">
<s:hidden name="attendant.attId" value="%{attendant.attId}"></s:hidden>
<s:hidden name="attendant.status" value="%{attendant.status}"></s:hidden>
<s:hidden name="attendant.created" value="%{attendant.created}"></s:hidden>
<s:hidden name="attendant.comId" value="%{#session.company.comId}"></s:hidden>
<s:hidden id="attAddress" value="%{attendant.attAddress}"></s:hidden>
<div style="width: 500px;height: 150px;background-color: #f0f8ff ;margin: 0px auto;">
<table>
<tr height="40px;">
<td width="120px">配送员姓名<span style="color:red">*</span>：</td>
<td width="150px"><s:textfield  name="attendant.attName" required="true" style="width:100%;height:100%" theme="simple" id=""  placeholder="请输入配送员姓名" value="%{attendant.attName}"></s:textfield></td>
<td width="200px;" id="nameError"></td>
</tr>
<tr height="40px;">
<td width="120px">配送区域<span style="color:red">*</span>：</td>
<td width="150px">
<select name="attendant.attAddress" style="width:90%;height:100%" id="address">
<option>选择配送区域</option>
<s:iterator value="%{streets}" id="street">
<option  value="<s:property value="#street.streetName"/>"><s:property value="#street.streetName"/></option>
</s:iterator>
</select>
<script type="text/javascript">
var address=$("#attAddress").val();
$("#address option[value="+address+"]").attr("selected","selected");
</script>
 </td>
<td width="200px;" id=""></td>
</tr>
</table>
</div>
</form>
</body>
</html>